﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AutomationHost.ViewModels.CaseIndexPage>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%">
    <thead>
    <tr>
    <td>Product Tree</td>
    <td>Test Case Information</td>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td style="width: 200px; vertical-align: top"><%Html.RenderPartial("ProductTree", Model.ProductTree); %></td>
    <td style="vertical-align: top">
    <%
        if (!string.IsNullOrEmpty(Request["caseid"]))
        {
            %><%Html.RenderPartial("TestCase", Model.CurrentTestCase); %><%
        }
        else if (!string.IsNullOrEmpty(Request["featureid"]))
        {
            %><%Html.RenderPartial("Feature", Model.CurrentFeature); %><%
        }
        else if (!string.IsNullOrEmpty(Request["productid"]))
        {
            %><%Html.RenderPartial("Product", Model.CurrentProduct); %><%
        }
         %>
    </td>
    </tr>
    </tbody>
    </table>
    <hr />
<input type="button" value="Add a Product" />
</asp:Content>
